package com.kaifamiao.www.demo.do0802;

public class Demo {
    public static void main(String[] args) {

        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        int a = 10,b = 102;
        System.out.println(Integer.compare(a,b));
        System.out.println(Integer.max(a,b));
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.min(a,b));
        System.out.println(Integer.sum(a,b));
        //基本数据类型与String相互转换
        int i = 10;
        String s = String.valueOf(i);
        byte bb = 11;
        String s1 = String.valueOf(b);

        //String 转换基本数据类型
        String str = "12";
        int d = Integer.parseInt(str);
        String str1 = "32";
        short x = Short.parseShort(str1);

        /**
         * 装箱
         * 装箱操作（基本数据类型转换到包装类型）调用的是  包装类对象.valueof()
         * 拆箱操作(包装类转换到基本数据类型）调用的是  包装对象 .xxxvalue
         */

    }
}
